package com.aistar.pojo;


import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@TableName(value = "customer")
public class User {

    private Integer custId;


    private String custName;


    private Long custTelno;


    private String custEmail;


    private String custPassword;


    @DateTimeFormat(pattern="YYYY-MM-dd")
    private Date custRegistTime;


    private Integer status;


    private String other1;


    private String other2;

    private String salt;

    private static final long serialVersionUID = 1L;


    public Integer getCustId() {
        return custId;
    }


    public void setCustId(Integer custId) {
        this.custId = custId;
    }


    public String getCustName() {
        return custName;
    }


    public void setCustName(String custName) {
        this.custName = custName == null ? null : custName.trim();
    }


    public Long getCustTelno() {
        return custTelno;
    }


    public void setCustTelno(Long custTelno) {
        this.custTelno = custTelno;
    }

    public Date getCustRegistTime() {
        return custRegistTime;
    }


    public void setCustRegistTime(Date custRegistTime) {
        this.custRegistTime = custRegistTime;
    }


    public Integer getStatus() {
        return status;
    }


    public void setStatus(Integer status) {
        this.status = status;
    }


    public String getOther1() {
        return other1;
    }


    public void setOther1(String other1) {
        this.other1 = other1 == null ? null : other1.trim();
    }

    public String getOther2() {
        return other2;
    }

    public void setOther2(String other2) {
        this.other2 = other2 == null ? null : other2.trim();
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getCustEmail() {
        return custEmail;
    }

    public void setCustEmail(String custEmail) {
        this.custEmail = custEmail;
    }

    public String getCustPassword() {
        return custPassword;
    }

    public void setCustPassword(String custPassword) {
        this.custPassword = custPassword;
    }

    @Override
    public String toString() {
        return "User{" +
                "custId=" + custId +
                ", custName='" + custName + '\'' +
                ", custTelno=" + custTelno +
                ", custEmail='" + custEmail + '\'' +
                ", custPassword='" + custPassword + '\'' +
                ", custRegistTime=" + custRegistTime +
                ", status=" + status +
                ", other1='" + other1 + '\'' +
                ", other2='" + other2 + '\'' +
                ", salt='" + salt + '\'' +
                '}';
    }
}
